package cn.xinfei.xdecision.common.model.decisionflow;

import cn.xinfei.xdecision.common.model.enginex.po.EngineNode;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * Created by maying on 2023/03/05.
 **/
@Data
public class NodeJsonUpdateReqVo extends NodeSaveReqVo{

	@ApiModelProperty(value = "节点信息")
	@NotEmpty(message = "节点信息不能为空")
	private String nodeJson;

	@Override
	public EngineNode coverToEngineNode(){
		EngineNode engineNode = super.coverToEngineNode();
		engineNode.setNodeJson(nodeJson);
		return engineNode;
	}

}
